package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RepairDetailMapper;
import com.ruoyi.system.domain.RepairDetail;
import com.ruoyi.system.service.IRepairDetailService;

/**
 * 维修详情表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-03
 */
@Service
public class RepairDetailServiceImpl implements IRepairDetailService 
{
    @Autowired
    private RepairDetailMapper repairDetailMapper;

    /**
     * 查询维修详情表
     * 
     * @param id 维修详情表主键
     * @return 维修详情表
     */
    @Override
    public RepairDetail selectRepairDetailById(Long id)
    {
        return repairDetailMapper.selectRepairDetailById(id);
    }

    /**
     * 查询维修详情表列表
     * 
     * @param repairDetail 维修详情表
     * @return 维修详情表
     */
    @Override
    public List<RepairDetail> selectRepairDetailList(RepairDetail repairDetail)
    {
        return repairDetailMapper.selectRepairDetailList(repairDetail);
    }

    /**
     * 新增维修详情表
     * 
     * @param repairDetail 维修详情表
     * @return 结果
     */
    @Override
    public int insertRepairDetail(RepairDetail repairDetail)
    {
        return repairDetailMapper.insertRepairDetail(repairDetail);
    }

    /**
     * 修改维修详情表
     * 
     * @param repairDetail 维修详情表
     * @return 结果
     */
    @Override
    public int updateRepairDetail(RepairDetail repairDetail)
    {
        return repairDetailMapper.updateRepairDetail(repairDetail);
    }

    /**
     * 批量删除维修详情表
     * 
     * @param ids 需要删除的维修详情表主键
     * @return 结果
     */
    @Override
    public int deleteRepairDetailByIds(Long[] ids)
    {
        return repairDetailMapper.deleteRepairDetailByIds(ids);
    }

    /**
     * 删除维修详情表信息
     * 
     * @param id 维修详情表主键
     * @return 结果
     */
    @Override
    public int deleteRepairDetailById(Long id)
    {
        return repairDetailMapper.deleteRepairDetailById(id);
    }
}
